package com.oromwin.repos.socket.request.file;

import java.io.DataInputStream;
import java.io.DataOutputStream;

import org.apache.commons.logging.Log;

import com.oromwin.repos.common.Common;
import com.oromwin.repos.common.Logger;
import com.oromwin.repos.common.ReposException;
import com.oromwin.repos.server.LockObject;
import com.oromwin.repos.socket.request.AbstractRequest;
import com.oromwin.repos.socket.response.CancelResponse;
import com.oromwin.repos.socket.response.Response;

public class CancelRequest extends AbstractRequest {
    private Log log = Logger.getLog(CancelRequest.class);
    private static final long serialVersionUID = 8485704096828585675L;

    @Override
    public void send(DataOutputStream dos) throws ReposException {
        throw ReposException.create(log, Common.Message.NOT_IMPLEMENTED_METHOD_INVOKE);
    }

    @Override
    public void receive(DataInputStream dis, LockObject lockObject) throws ReposException {
        throw ReposException.create(log, Common.Message.NOT_IMPLEMENTED_METHOD_INVOKE);
    }

    @Override
    public Response run() {
        return new CancelResponse();
    }

}
